﻿using System;
using System.Data;
using Business;


namespace Presentation.UserControl
{
    public partial class Category : System.Web.UI.UserControl
    {
        private CategoryBsl _categoryBsl;
        protected void Page_Load(object sender, EventArgs e)
        {
           if(!IsPostBack)
           {
               _categoryBsl = new CategoryBsl();
               DataTable dataTable = _categoryBsl.ViewAllCategories();
               RptViewCategories.DataSource = dataTable;
               RptViewCategories.DataBind();
           }
        }
    }
}